Change in openvpn[master]: Use const specifices in extract_x509_field_ssl
A message that is not in the archive (sent off-list or not yet received): gerrit.1774445432000.Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a@...2715...
plaisthos has uploaded this change for review. ( http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email )
Change subject: Use const specifices in extract_x509_field_ssl
......................................................................
Use const specifices in extract_x509_field_ssl
The new OpenSSL 4.0 will return const objects from these objects, so make them const in our code as well.
---
M src/openvpn/ssl_verify_openssl.c
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/88/1588/1
src/openvpn/ssl_verify_openssl.c +2 -4
@@ -195,8 +195,6 @@ {int lastpos =-1 ;int tmp =-1 ; -X509_NAME_ENTRY *x509ne =NULL ; -ASN1_STRING *asn1 =NULL ;unsigned char *buf =NULL ;ASN1_OBJECT *field_name_obj =OBJ_txt2obj (field_name,0 );
@@ -222,13 +220,13 @@return FAILURE ; } - x509ne =X509_NAME_get_entry (x509, lastpos); +const X509_NAME_ENTRY *x509ne =X509_NAME_get_entry (x509, lastpos);if (!x509ne) {return FAILURE ; } - asn1 =X509_NAME_ENTRY_get_data (x509ne); +const ASN1_STRING *asn1 = asn1 =X509_NAME_ENTRY_get_data (x509ne);if (!asn1) {return FAILURE ;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Gerrit-Change-Number: 1588
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Attention is currently required from: plaisthos.
flichtenheld has posted comments on this change by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email )
Change subject: Use const specifices in extract_x509_field_ssl
......................................................................
Patch Set 1: Code-Review-1
(1 comment)
File src/openvpn/ssl_verify_openssl.c:
http://gerrit.openvpn.net/c/openvpn/+/1588/comment/705b14cd_cb71802f?usp=email :
PS1, Line 229: const ASN1_STRING *asn1 = asn1 = X509_NAME_ENTRY_get_data(x509ne);
redundant asn1 =
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Gerrit-Change-Number: 1588
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Wed, 25 Mar 2026 14:55:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Attention is currently required from: flichtenheld.
plaisthos has posted comments on this change by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email )
Change subject: Use const specifices in extract_x509_field_ssl
......................................................................
Patch Set 1:
(1 comment)
File src/openvpn/ssl_verify_openssl.c:
http://gerrit.openvpn.net/c/openvpn/+/1588/comment/67641012_3eeb1309?usp=email :
PS1, Line 229: const ASN1_STRING *asn1 = asn1 = X509_NAME_ENTRY_get_data(x509ne);
Quoted 1 line
redundant
asn1 =
Acknowledged
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Gerrit-Change-Number: 1588
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 25 Mar 2026 15:07:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <[email protected]...>
Attention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld
Change subject: Use const specifices in extract_x509_field_ssl
......................................................................
Use const specifices in extract_x509_field_ssl
The new OpenSSL 4.0 will return const objects from these objects, so make them const in our code as well.
---
M src/openvpn/ssl_verify_openssl.c
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/88/1588/2
src/openvpn/ssl_verify_openssl.c +2 -4
@@ -195,8 +195,6 @@ {int lastpos =-1 ;int tmp =-1 ; -X509_NAME_ENTRY *x509ne =NULL ; -ASN1_STRING *asn1 =NULL ;unsigned char *buf =NULL ;ASN1_OBJECT *field_name_obj =OBJ_txt2obj (field_name,0 );
@@ -222,13 +220,13 @@return FAILURE ; } - x509ne =X509_NAME_get_entry (x509, lastpos); +const X509_NAME_ENTRY *x509ne =X509_NAME_get_entry (x509, lastpos);if (!x509ne) {return FAILURE ; } - asn1 =X509_NAME_ENTRY_get_data (x509ne); +const ASN1_STRING *asn1 =X509_NAME_ENTRY_get_data (x509ne);if (!asn1) {return FAILURE ;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Gerrit-Change-Number: 1588
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: plaisthos.
flichtenheld has posted comments on this change by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email )
Change subject: Use const specifices in extract_x509_field_ssl
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Gerrit-Change-Number: 1588
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Comment-Date: Thu, 26 Mar 2026 10:10:41 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v2 1/1 Use const specifices in extract_x509_field_ssl
In reply to a message not in the archiveFrom: Arne Schwabe <[email protected]...>
The new OpenSSL 4.0 will return const objects from these objects, so make them const in our code as well.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588
This mail reflects revision 2 of this Change.
Acked-by according to Gerrit (reflected above):
Frank Lichtenheld <[email protected]...>
src/openvpn/ssl_verify_openssl.c +2 -4
@@ -195,8 +195,6 @@ {int lastpos =-1 ;int tmp =-1 ; -X509_NAME_ENTRY *x509ne =NULL ; -ASN1_STRING *asn1 =NULL ;unsigned char *buf =NULL ;ASN1_OBJECT *field_name_obj =OBJ_txt2obj (field_name,0 );
@@ -222,13 +220,13 @@return FAILURE ; } - x509ne =X509_NAME_get_entry (x509, lastpos); +const X509_NAME_ENTRY *x509ne =X509_NAME_get_entry (x509, lastpos);if (!x509ne) {return FAILURE ; } - asn1 =X509_NAME_ENTRY_get_data (x509ne); +const ASN1_STRING *asn1 =X509_NAME_ENTRY_get_data (x509ne);if (!asn1) {return FAILURE ;
[Openvpn-devel] [PATCH applied] Re: Use const specifices in extract_x509_field_ssl
Makes sense, is straightforward enough, and for long-term compat, needs to be in master + 2.7
Your patch has been applied to the master and release/2.7 branch.
commit 3316a18ebe6669d5e31b17ab0356a533b846d1bc (master) commit 82f676574dce2f391d2cb7332068f0fc6dca5387 (release/2.7)
Author: Arne Schwabe Date: Thu Mar 26 12:06:52 2026 +0100
Use const specifices in extract_x509_field_ssl
Signed-off-by: Arne Schwabe <[email protected]...>
Acked-by: Frank Lichtenheld <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg36291.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#3) to the change originally created by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld
Change subject: Use const specifices in extract_x509_field_ssl
......................................................................
Use const specifices in extract_x509_field_ssl
The new OpenSSL 4.0 will return const objects from these objects, so make them const in our code as well.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg36291.html
---
M src/openvpn/ssl_verify_openssl.c
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/88/1588/3
src/openvpn/ssl_verify_openssl.c +2 -4
@@ -195,8 +195,6 @@ {int lastpos =-1 ;int tmp =-1 ; -X509_NAME_ENTRY *x509ne =NULL ; -ASN1_STRING *asn1 =NULL ;unsigned char *buf =NULL ;ASN1_OBJECT *field_name_obj =OBJ_txt2obj (field_name,0 );
@@ -222,13 +220,13 @@return FAILURE ; } - x509ne =X509_NAME_get_entry (x509, lastpos); +const X509_NAME_ENTRY *x509ne =X509_NAME_get_entry (x509, lastpos);if (!x509ne) {return FAILURE ; } - asn1 =X509_NAME_ENTRY_get_data (x509ne); +const ASN1_STRING *asn1 =X509_NAME_ENTRY_get_data (x509ne);if (!asn1) {return FAILURE ;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Gerrit-Change-Number: 1588
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email )
Change subject: Use const specifices in extract_x509_field_ssl
......................................................................
Use const specifices in extract_x509_field_ssl
The new OpenSSL 4.0 will return const objects from these objects, so make them const in our code as well.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1588
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg36291.html
---
M src/openvpn/ssl_verify_openssl.c
1 file changed, 2 insertions(+), 4 deletions(-)
src/openvpn/ssl_verify_openssl.c +2 -4
@@ -195,8 +195,6 @@ {int lastpos =-1 ;int tmp =-1 ; -X509_NAME_ENTRY *x509ne =NULL ; -ASN1_STRING *asn1 =NULL ;unsigned char *buf =NULL ;ASN1_OBJECT *field_name_obj =OBJ_txt2obj (field_name,0 );
@@ -222,13 +220,13 @@return FAILURE ; } - x509ne =X509_NAME_get_entry (x509, lastpos); +const X509_NAME_ENTRY *x509ne =X509_NAME_get_entry (x509, lastpos);if (!x509ne) {return FAILURE ; } - asn1 =X509_NAME_ENTRY_get_data (x509ne); +const ASN1_STRING *asn1 =X509_NAME_ENTRY_get_data (x509ne);if (!asn1) {return FAILURE ;
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1588?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia43bb88d9ddf2e82c638011353a64c770f2c2c0a
Gerrit-Change-Number: 1588
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>